package grape.house.rest.client.impl.propertytype;

import grape.house.rest.propertytype.mvc.PropertyTypeInnerController;
import grape.house.rest.client.propertytype.PropertyTypeClient;
import grape.house.service.propertytype.po.PropertyType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by yangwei
 * Created at 2020/9/28 16:37
 */
@Component
public class PropertyTypeClientImpl implements PropertyTypeClient {
    @Autowired
    private PropertyTypeInnerController propertyTypeInnerController;
    @Override
    public String trans(String type, String key) {
        return propertyTypeInnerController.trans(type,key);
    }

    @Override
    public boolean support(String type) {
        return propertyTypeInnerController.support(type);
    }

    @Override
    public PropertyType getPropertyTypeById(String id) {
        return propertyTypeInnerController.getPropertyTypeById(id);
    }

    @Override
    public PropertyType getPropertyTypeByCode(String code) {
        return propertyTypeInnerController.getPropertyTypeByCode(code);
    }
}
